package com.mall.group_booking.controller;

import com.mall.common.response.CommonResponse;
import com.mall.group_booking.entity.GbRecordVo;
import com.mall.group_booking.service.BookingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author White
 * @version 1.0
 * @email 616769721@qq.com
 * @date 2021/7/30 17:28
 */

@RestController
@RequestMapping("/booking")
public class BookingController {

    @Autowired
    private BookingService bookingService;

    @PostMapping("/doBooking")
    public CommonResponse<Object> doBooking(@RequestBody GbRecordVo gbRecordVo){
        return bookingService.doBooking(gbRecordVo);
    }
}
